package com.kayt.cyberBar.cpublic.business.server.impl;

import java.sql.SQLException;
import java.util.LinkedHashMap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cpublic.business.dao.IPublicUserSexDao;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicUserSex;
import com.kayt.cyberBar.cpublic.business.server.IPublicUserSexServer;

@Service("publicUserSexServer")
public class PublicUserSexServerImpl implements IPublicUserSexServer{
	private static Logger logger = LoggerFactory.getLogger(PublicStatusServerImpl.class);
	
	@Autowired
	private IPublicUserSexDao iPublicUserSexDao;
	@Override
	public PageData<CPublicUserSex> get_userSex_list() {
		try {
			LinkedHashMap<String, String> orderMap1 = new LinkedHashMap<>();
			orderMap1.put("id", "asc");
			return this.iPublicUserSexDao.getUserSexList(orderMap1);
		} catch (SQLException e) {
			logger.error("get_user_sex_list with a SQLException", e);
			return null;
		}
	}

}
